Skip to content

fix: standardize json context labels - #37

Merged
jinbagi merged 1 commit into
masterfrom
codex/json-context-naming
Jul 3, 2026
Merged

fix: standardize json context labels#37
jinbagi merged 1 commit into
masterfrom
codex/json-context-naming

Conversation

@jinbagi

@jinbagi jinbagi commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rename JSON editing contexts so create, detail/edit, plugin, and API Console surfaces use distinct labels.
  • Update JSON editor standard docs and getting-started copy to match the UI terminology.
  • Refresh E2E selectors and test names for Payload JSON, Admin API JSON, Plugin JSON, and Request/Response JSON.

Verification

  • corepack pnpm exec tsc -b --pretty false
  • corepack pnpm lint
  • corepack pnpm build
  • E2E_TARGET_URL=http://127.0.0.1:55173/ui/ playwright test e2e/tests/resource-required-templates.spec.ts e2e/tests/routes.edit-payload-preservation.spec.ts e2e/tests/api-console.spec.ts --config=.tmp-playwright-chrome.config.ts --project=chrome --reporter=list --workers=1
  • playwright test e2e/tests/admin-ux-helpers.spec.ts --reporter=list --workers=1

Copilot AI review requested due to automatic review settings July 3, 2026 17:49
@jinbagi
jinbagi merged commit bc20a35 into master Jul 3, 2026
@jinbagi
jinbagi deleted the codex/json-context-naming branch July 3, 2026 17:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Standardizes the JSON-editor context terminology across the dashboard UI, docs, and Playwright E2E coverage so users can clearly distinguish between create payload editing, direct Admin API patching, plugin config editing, and API Console request/response editing.

Changes:

  • Renamed UI labels/messages to use distinct context names: Payload JSON, Admin API JSON, Plugin JSON, Request JSON, and Response JSON.
  • Updated JSON editor standard/design docs and getting-started guidance to match the new UI terminology.
  • Refreshed E2E test names and selectors to target the updated tab/button labels.

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/routes/raw_api/index.tsx Renames API Console request/response JSON labels and related error/action text.
src/components/page/AdminApiJsonEditor.tsx Updates tooltips to explicitly reference “Admin API JSON”.
src/components/form/FormJsonTabs.tsx Renames create/edit JSON tabs to “Payload JSON” / “Admin API JSON” and updates helper copy.
src/components/form-slice/FormItemPlugins/PluginEditorDrawer.tsx Renames plugin editor JSON tab/actions/ARIA labels to “Plugin JSON”.
src/components/form-slice/FormItemPlugins/index.tsx Updates plugin warnings to reference “Plugin JSON” mode.
e2e/tests/routes.edit-payload-preservation.spec.ts Updates test names and tab selectors for “Admin API JSON”.
e2e/tests/resource-required-templates.spec.ts Updates create-form selectors for “Payload JSON” and plugin dialog “Plugin JSON”.
e2e/tests/plugin_metadata.crud-required-fields.spec.ts Updates plugin dialog tab selectors to “Plugin JSON”.
e2e/tests/plugin_metadata.crud-all-fields.spec.ts Updates plugin dialog selectors and error-action button names to “Plugin JSON”.
e2e/tests/plugin_configs.crud-required-fields.spec.ts Updates plugin dialog tab selectors to “Plugin JSON”.
e2e/tests/plugin_configs.crud-all-fields.spec.ts Updates plugin dialog tab selectors to “Plugin JSON”.
e2e/tests/hot-path.upstream-service-route.spec.ts Updates plugin dialog tab selectors to “Plugin JSON”.
e2e/tests/global_rules.crud-required-fields.spec.ts Updates plugin dialog tab selectors to “Plugin JSON”.
e2e/tests/global_rules.crud-all-fields.spec.ts Updates plugin dialog tab selectors to “Plugin JSON”.
e2e/tests/consumers.credentials.list.spec.ts Updates plugin dialog tab selectors to “Plugin JSON”.
e2e/tests/consumer_groups.crud-required-fields.spec.ts Updates plugin dialog tab selectors to “Plugin JSON”.
e2e/tests/consumer_groups.crud-all-fields.spec.ts Updates plugin dialog tab selectors to “Plugin JSON”.
e2e/tests/api-console.spec.ts Updates API Console error-action selector to “Format Request JSON”.
e2e/tests/admin-ux-helpers.spec.ts Renames test descriptions to match “Admin API JSON” terminology.
docs/en/getting-started.md Updates getting-started copy to distinguish “Admin API JSON” vs “Payload JSON”.
docs/design/json-editor-standard.md Updates JSON editor standard to enumerate and define the new context names.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1086 to 1088
<div className={classes.responseTitle}>
<span>Response</span>
<span>{responseView === 'Headers' ? 'Response Headers' : 'Response JSON'}</span>
{response && statusColor && (
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants